package com.base.service.impl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.VersionHistoryMapper;
import com.base.po.voip.VersionHistory;
import com.base.po.voip.VersionHistoryExample;
import com.base.service.VersionHistoryService;


@Service("versionHistoryService")
public class VersionHistoryServiceImpl implements VersionHistoryService{
	@Autowired
	private VersionHistoryMapper versionHistoryMapper;

	@Override
	public int countByExample(VersionHistoryExample example) {
		
		return versionHistoryMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(VersionHistoryExample example) {
		
		return versionHistoryMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		
		return versionHistoryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(VersionHistory record) {
		
		return versionHistoryMapper.insert(record);
	}

	@Override
	public int insertSelective(VersionHistory record) {
		
		return versionHistoryMapper.insertSelective(record);
	}

	@Override
	public List<VersionHistory> selectByExample(VersionHistoryExample example) {
		
		return versionHistoryMapper.selectByExample(example);
	}

	@Override
	public VersionHistory selectByPrimaryKey(String id) {
		
		return versionHistoryMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(VersionHistory record, VersionHistoryExample example) {
		
		return versionHistoryMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(VersionHistory record, VersionHistoryExample example) {
		
		return versionHistoryMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(VersionHistory record) {
		
		return versionHistoryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(VersionHistory record) {
		
		return versionHistoryMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<VersionHistory> selectByType(Byte type, String parentid) {
		
		return versionHistoryMapper.selectByType(type, parentid);
	}

	
}
